# -*- coding: utf-8 -*-

# pip install bottle
from bottle import route, run, template


@route('/hello/<name>')
def index(name):
    return template('<b>hello {{name}}</b>!', name=name)


@route('/hello')
def hello():
    return "hello world!"


if __name__ == '__main__':
    """
    curl http://localhost:8088/hello
    curl http://localhost:8088/hello/world
    """

    run(host='localhost', port=8088)

    pass
